addpath('/home/roosevelt/Desktop/Machine Learning/bayes/bnt_bayes_comparison_exp2');
bnet = mk_alarm();
A = importdata('/home/roosevelt/Desktop/Machine Learning/bayes/bnt_bayes_comparison_exp2/alarm_bnt.csv');
samples = A.data;
samples = num2cell(samples');
samples(cellfun(@isnan, samples)) = {[]};
engine = jtree_inf_engine(bnet);
t = cputime;
[bnet4, LLtrace] = learn_params_em(engine, samples, 10);
cputime - t
